from rest_framework import serializers
from .models import *


class MduserSer(serializers.ModelSerializer):
    class Meta:
        model = MdUser
        fields = '__all__'


class GoodsInfoSer (serializers.ModelSerializer):
    class Meta:
        model = GoodsInfo
        fields = '__all__'

class CommentSer (serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'


# 商品表
class GoodsSer(serializers.ModelSerializer):
    class Meta:
        model = Goods
        fields = '__all__'










# 用户表序列化
class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'



# 订单
class OrdersSer(serializers.ModelSerializer):
    class Meta:
        model = Orders
        fields = '__all__'

class UserssSer(serializers.ModelSerializer):
    class Meta:
        model = Userss
        fields = '__all__'